﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CMS.Repository.Translator
{
    public class ClassTranslator
    {
        public static List<CMS.Model.Grade> ToClassModelList(List<Class> inputList)
        {
            List<CMS.Model.Grade> classList = new List<CMS.Model.Grade>();
            foreach (Class c in inputList)
            {
                CMS.Model.Grade grade = new CMS.Model.Grade();
                grade.ClassId = c.ClassId;
                grade.ClassName = c.ClassName;
                classList.Add(grade);
            }
            return classList;
        }
    }
}
